const files = require.context('./modules', false, /\.js$/)
const routes = []
files.keys().forEach(key => {
    routes.push(...files(key).default)
})

const pages = [
    {
        path: '/',
        component: () => import('@/layout'),
        children: routes
    }
]
export default pages;
